AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')

function ENT:Initialize()
	self:DrawShadow( false )
	
end

function ENT:StartTouch( ply )
	if ValidPlayer( ply ) then
		if EntityDebug then
			print("Touch on func_flagzone ", ply )
		end
		
		Flag.TouchFlagZone( ply, self )
	end
end

	
function ENT:KeyValue( key, value )
	if EntityDebug then
		print( "Key value: ",  self, key, value )
	end
	
	if key:lower() == "teamnum" then
		local id = tonumber( value )
		
		if id == nil then
			Error("Attempting to set the team of ", self , "with invalid number", value )
		end
		
		self:SetTeam( id )
	end

end